# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=paraxor-slock
pkgver=1.1
pkgrel=1
pkgdesc="A simple screen locker for X (paraxor's fork)."
arch=('x86_64' 'aarch64')
url="http://tools.suckless.org/slock"
license=('MIT')
depends=('libxext')
makedepends=('git')
conflicts=('slock')
provides=('slock')
source=("$pkgname::git+http://github.com/paraxor/slock")
sha512sums=('SKIP')

build() {
  cd $pkgname

  make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}

package() {
  cd $pkgname

  make PREFIX=/usr DESTDIR="$pkgdir" install

  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

